package com.example.windowdemo.app;

import android.app.Application;

import com.example.windowdemo.utils.MMKVUtils;


/**
 * @author: njb
 * @date: 2023/8/9 15:29
 * @desc:
 */
public class MyApp extends Application {
    private static volatile MyApp mInstance;

    @Override
    public void onCreate() {
        super.onCreate();
        mInstance = this;
        //initMMKV();
    }

    public void initMMKV() {
        //java版本初始化
        MMKVUtils.getInstance().init(this);
        //Kotlin版本初始化
        //com.example.windowdemo.callback.MMKVUtils.Companion.getMInstance().init(this);
    }

    public static MyApp getInstance() {
        return mInstance;
    }
}
